<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('index')}">{:lang('ADMIN_SETTING_INDEX')}</a></li>
			<li class="active"><a href="{:url('add')}">{:lang('ADMIN_SETTING_ADD')}</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20"  action="{:url('addPost')}">
			<div class="form-group">
				<label  class="col-sm-2 control-label"><span class="form-required">*</span>配置KEY</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" required  name="config_key">
				</div>
			</div>
			<div class="form-group">
				<label  class="col-sm-2 control-label"><span class="form-required">*</span>配置名</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" required name="config_name">
				</div>
			</div>
			<div class="form-group">
				<label  class="col-sm-2 control-label"><span class="form-required">*</span>使用模板</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" required name="template">
				</div>
			</div>
            <div class="form-group">
				<label  class="col-sm-2 control-label"><span class="form-required">*</span>帮助文档</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" required name="help_url">
				</div>
			</div>
			<div class="form-group">
				<label  class="col-sm-2 control-label"><span class="form-required">*</span>显示列</label>
				<div class="col-md-6 col-sm-10">
                    <textarea class="form-control" required name="show_cols"></textarea>
				</div>
			</div>
            <div class="form-group">
				<label  class="col-sm-2 control-label"><span class="form-required">*</span>默认值</label>
				<div class="col-md-6 col-sm-10">
                    <textarea class="form-control" rows="30" required name="default_value"></textarea>
				</div>
			</div>
            <div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>状态</label>
				<div class="col-md-6 col-sm-10">
					<label class="radio-inline">
						<input type="radio" name="enable_i" value="1" checked >启用
					</label>
					<label class="radio-inline">
						<input type="radio" name="enable_i" value="0">禁用 
					</label>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>